﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Steve
{
    [DataContract]
    [Serializable]
    public abstract class RevisedObject : AuditObject
    {
        [DataMember]
        public int LatestRevisionNumber { get; set; }
        [DataMember]
        public string RevisionComment { get; set; }
        [DataMember]
        public int RevisionNumber { get; set; }
    }

    public abstract class AuditObject
    {
        [DataMember]
        public DateTime CreateDate { get; set; }
        [DataMember]
        public Guid? CreateMembershipId { get; set; }
        [DataMember]
        public Guid? RevisionMembershipId { get; set; }
        [DataMember]
        public DateTime RevisionDate { get; set; }
        [DataMember]
        public bool IsNew { get; set; }
    }
}
